<?php
/*导入ping++配置*/
$ping_config = require (dirname(__FILE__)).'/config_ping.php';

/*合并输出*/
$config=  array(
    //'配置项'=>'配置值'
    'KEY_POSTFIX'           =>'ace',         //key后缀
    'KEY_EXPIRE'           =>43200,         //key有效期
    'URL_MODEL'            => 2,
    'URL_CASE_INSENSITIVE' => true,   //不区分大小写
    'URL_PATHINFO_DEPR'    => '/',
    'ERRCODE_ERR'    => 403,    //失败
    'ERRCODE_SUCC'    => 200,   //成功
    'ERRCODE_MISS'    => 1001,  //参数缺失
    'ERRCODE_TYPE'    => 1002,  //类型错误
    'ERRCODE_ABN'    => 1003, //登录异常，用于key对比出错


    //Redis缓存配置
    'DATA_CACHE_TIME'       =>  '0',             //长连接时间,REDIS_PERSISTENT为1时有效
    'DATA_CACHE_PREFIX'     =>  'DEV',            // 缓存前缀
    'DATA_CACHE_TYPE'       =>  'Redis',       //数据缓存类型
    'DATA_EXPIRE'           =>  259200,               //数据缓存有效期(单位:秒) 0表示永久缓存
    'DATA_PERSISTENT'      =>  1,               //是否长连接
    'DATA_REDIS_HOST'            =>  '127.0.0.1', //分布式Redis,默认第一个为主服务器
    'DATA_REDIS_PORT'            =>  '6379',           //端口,如果相同只填一个,用英文逗号分隔
    'DATA_REDIS_AUTH'            =>  'zsf1233216',   //Redis auth认证(密钥中不能有逗号),如果相同只填一个,用英文逗号分隔

    //上传配置
    'UPLOAD_CONFIG' => array(
        'maxSize'    =>    5 * 1024 * 1024,//文件大小,
        'rootPath'   =>    './Uploads/',
        'savePath'   =>    '',
        'saveName'   =>    array('uniqid',''),
        'exts'       =>    array('jpg', 'gif', 'png', 'jpeg'),
        'autoSub'    =>    true,
        'subName'    =>    array('date','Ymd'),
        'driver'     =>    'Qiniu',
        'driverConfig' => array (
            'secrectKey' => 'Sk58rm_KJWZrr4SEft2AAHtsEbRULcxQpk_VABGn',
            'accessKey' => 'fIq-nY0Txj_7lgKkNK39R0047xaO2S0zWXGBumjN',
            'domain' => '7xrcjk.com2.z0.glb.qiniucdn.com',
            'bucket' => 'master',
        )
    ),
    'REPAIR_ORDER_PUSH_KEY'=>'REPAIR_ORDER_PUSH_KEY',
    'REPAIR_ORDER'=>'REPAIR_ORDER',//抢订单rediskey  维修
    'RE_ORDER'=>'RENOVATION_ORDER',//抢订单rediskey  装修
    //实名认证页面选项
    'ID_TYPE'=>array(
        0=>'身份证件',
        1=>'退役军人证件',
        2=>'现役军人证件',
        3=>'港澳台证件',
        4=>'外籍人士证件',
    ),

    //短信接口配置
    'MSG_CONFIG'=>array(
        'url'=>'http://106.ihuyi.cn/webservice/sms.php?method=Submit',
        "method" => "Submit",
        "account" => "cf_sfzj",
        "password" => md5('pzc513899'),
        'content'=>"您的验证码是：{content}。请不要把验证码泄露给其他人。",
        'format'=>'json',
        'replace'=>'{content}'
    ),

    //ping++配置
    'PING_MODE'=>0,//ping++开发模式 0 测试 1在线
    'PINGPP_CONFIG'=>array(
        "APIID" => "app_KCa1G0Sanz10bnfb",
        'API_TEST_KEY'=>'sk_test_GufnbPyr1yjHGSyDSOLyzfzT',
        'API_TEST_PUBLISHABLE_KEY'=>'pk_test_LibHuDvX5ez1H0KSmP0mX5K4',
        'API_LIVE_KEY'=>'sk_live_u5S4CKajDSKGPWX14G080GmH',
        'API_TEST_PUBLISHABLE_KEY'=>'pk_live_r1aX1OuHGuD4mHqrTCqf5uLS',
    ),

    //地址转经纬度接口配置
    'MAP_CONFIG'=>array(
        'ak'=>'D1ZBNio6Tc8S6V4LpjCThoS3',
        'url'=>'http://api.map.baidu.com/geocoder/v2/',
    ),


    //redis极光推送名
    'JPUSH_KEY'=>'JPUSH_KEY',
);
return array_merge($config, $ping_config);